/**
 * Created by chenkeliang on 2017/3/9.
 */
import React from 'react'
import {Router, Route, Link, browserHistory} from 'react-router'
import {User} from './component/User/UserIndex'
import {Role} from './component/Role/RoleIndex'

class RouterMain extends React.Component {
    render() {
        return (
            <Router history={ browserHistory }>
                <Route path="/" Component={User}></Route>
                <Route path="/User" Component={User}></Route>
                <Route path="/Role" Component={Role}></Route>
                <Route path="*" Component={User}></Route>
            </Router>
        )
    }
}

export default RouterMain;